class Empleado < ActiveRecord::Base
  has_many :orden_servicios, :dependent => :destroy
  
  validates_presence_of     :nombre
  validates_length_of       :nombre,    :maximum => 50
    validates_presence_of     :apellido
  validates_length_of       :apellido,    :maximum => 50
    validates_presence_of     :login
  validates_length_of       :login,    :maximum => 50
    validates_presence_of     :contrasena
  validates_length_of       :contrasena,    :maximum => 10
    validates_presence_of     :rol
  validates_length_of       :rol,    :maximum => 50
  
end
  